﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace YXShop.Common
{
    public class ValuePair
    {
        /// <summary>
        /// 根据ID返回
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetStoreType(int i)
        {
            string result = "";
            if(i==1)
            {
                result = "星星";
            }
            else if (i == 2)
            {
                result = "月亮";
            }
            else if(i==3)
            {
                result = "太阳";
            }
            return result;
        }

        public static DataTable GetStoreType()
        {
            DataTable result = new DataTable();
            result.Columns.Add("StoreTypeID");
            result.Columns.Add("StoreTypeName");
            result.Rows.Add(1, "星星");
            result.Rows.Add(2, "月亮");
            result.Rows.Add(3, "太阳");
            return result;
        }
        public static string GetStoreAskType(int i)
        {
            string result = "";
            if (i == 1)
            {
                result = "总部";
            }
            else if (i == 2)
            {
                result = "销售中心";
            }
            else if (i == 3)
            {
                result = "门店";
            }
            return result;
        }
        public static DataTable GetStoreAskType()
        {
            DataTable result = new DataTable();
            result.Columns.Add("StoreAskTypeID");
            result.Columns.Add("StoreAskTypeName");
            result.Rows.Add(1, "总部");
            result.Rows.Add(2, "销售中心");
            result.Rows.Add(3, "门店");
            return result;
        }
        /// <summary>
        /// 根据ID返回管理员类型
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetAdminType(int i)
        {
            string result = "";
            if (i == 1)
            {
                result = "总部";
            }
            else if (i == 2)
            {
                result = "销售中心";
            }
            else if (i == 3)
            {
                result = "门店";
            }
            return result;
        }
        public static DataTable GetAdminType()
        {
            DataTable result = new DataTable();
            result.Columns.Add("AdminTypeID");
            result.Columns.Add("AdminTypeName");
            result.Rows.Add(1, "总部");
            result.Rows.Add(2, "销售中心");
            result.Rows.Add(3, "门店");
            return result;
        }
        public static DataTable GetMessageCategory()
        {
            DataTable result = new DataTable();
            result.Columns.Add("MessageCategoryID");
            result.Columns.Add("MessageCategoryName");
            result.Rows.Add(1, "公告");
            result.Rows.Add(2, "资料");
            return result;
        }
        /// <summary>
        /// 根据ID返回消息类型
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetMessageCategory(int i)
        {
            string result = "";
            if (i == 1)
            {
                result = "公告";
            }
            else if (i == 2)
            {
                result = "资料";
            }
            return result;
        }

        /// <summary>
        /// 根据ID返回肤质类型
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetSkinType(int i)
        {
            string result = "";
            if (i == 1)
            {
                result = "中性";
            }
            else if (i == 2)
            {
                result = "干性";
            }
            else if (i == 3)
            {
                result = "油性";
            }
            else if (i == 4)
            {
                result = "混合性";
            }
            return result;
        }

        public static DataTable GetSkinType()
        {
            DataTable result = new DataTable();
            result.Columns.Add("SkinTypeID");
            result.Columns.Add("SkinTypeName");
            result.Rows.Add(1, "中性");
            result.Rows.Add(2, "干性");
            result.Rows.Add(3, "油性");
            result.Rows.Add(4, "混合性");
            return result;
        }
        /// <summary>
        /// 根据ID返回肤质问题
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetSkinProblem(int i)
        {
            string result = "";
            if (i == 1)
            {
                result = "过敏";
            }
            else if (i == 2)
            {
                result = "暗疮粉刺";
            }
            else if (i == 3)
            {
                result = "衰老皱纹";
            }
            else if (i == 4)
            {
                result = "黑眼圈";
            }
            else if (i == 5)
            {
                result = "色素沉着";
            }
            else if (i == 6)
            {
                result = "毛孔粗大";
            }
            return result;
        }

        public static DataTable GetSkinProblem()
        {
            DataTable result = new DataTable();
            result.Columns.Add("SkinProblemID");
            result.Columns.Add("SkinProblemName");
            result.Rows.Add(1, "过敏");
            result.Rows.Add(2, "暗疮粉刺");
            result.Rows.Add(3, "衰老皱纹");
            result.Rows.Add(4, "黑眼圈");
            result.Rows.Add(5, "色素沉着");
            result.Rows.Add(6, "毛孔粗大");
            return result;
        }

    }
}
